package com.wuliu.system.domain.dto;

import com.wuliu.common.utils.MessageUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;

/**
 * @author realue
 * @version 1.0
 * @date 2022-10-14 11:34
 */
@Data
@ApiModel
public class LoginDto {
    @NotBlank(message = "用户名不能为空")
    @ApiModelProperty(value = "用户名")
    private String userNo;
    @ApiModelProperty(value = "密码")
    private String pwd;
    @ApiModelProperty(value = "验证码")
    private String code;
    @Range(min = 1,max = 2,message = "验证方式只能是1或2")
    @ApiModelProperty(value = "登录方式 1.密码 2.验证码")
    private Short type;
    @ApiModelProperty(value = "账套号")
    private String sysAccount;
}
